* {
    box-sizing: border-box;
    font-family: "Mozilla Text", sans-serif;
}

html {
    height: 100vh;
    width: 100vw;
    padding: 0;
    overflow-x: hidden;
}

body {
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #bbdff338;
    color: black;
    height: 100%;
    width: 100%;
}

section {
    margin-top: 4em;
    border-radius: 1em;
    background-color: #c0e0f133;
    box-shadow: 0 0 0.3rem #04091336;
    width: auto min-content;
}

section header {
    border-radius: 1em 1em 0 0;
    background-color: #2c73e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 0.2rem;
    padding-top: 0.2rem;
    box-sizing: border-box;
}

ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

a {
    text-decoration: none;
    color: white;
}

.container {
    padding: 1.5em;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1.5rem;
}

.innerContainer {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 0.3rem;
    padding: 0.8em;
    box-shadow: 0 0 0.3rem #04091336;
}

.addAttendance {
    max-width: 20em;
    width: 100%;
}

.addAttendance h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.addAttendance input:not(#rememberme),
.addAttendance select {
    border: 0.1rem solid #2c74e742;
    border-radius: 0.3rem;
    height: 3em;
    box-shadow: 0 0 0.1rem #09162c80;
    margin-bottom: 1rem;
    transition: 0.1s ease-in-out;
}

input:focus:not(#rememberme){
    outline: none;
    box-shadow: 0 0 0.5rem #09162c80;
}

label {
    margin-bottom: 0.2rem;
}

button{
    border: none;
    background-color: #2c73e7;
    color: white;
    border-radius: 0.3rem;
    height: 3rem;
    padding: 0.5rem;
    font-size: 1em;
    transition: 0.1s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #1c56b4;
}

table {
    border-collapse: separate;
    border-spacing: 0.6rem;
}

td,
th {
    text-align: left;
    margin-top: 1em;
}

.teacherList h2 {
    margin: 0;
    margin-left: 0.6rem;
}

.ac {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    background-color: white;
    border-radius: 0.3rem;
    padding: 0.8em;
    box-shadow: 0 0 0.3rem #04091336;
}

.ac p {
    grid-column: 1 / 2;
    grid-row: 1;
}

.ac h2 {
    margin: 0;
    grid-column: 1 / 2;
    grid-row: 2;
    font-size: 2rem;
}

.ac img {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    height: 2.5em;
    width: 2.5em;
    justify-self: end;
    align-self: center;
    background-color: #d38c18;
    border-radius: 50%;
    filter: invert(1);
}

.gridTemplate {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 1.5rem;
}

.marksContainter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input[type="time" i] {
    padding-inline-start: 1px;
    cursor: pointer;
}

.success,
.error {
    position: absolute;
    align-self: center;
    padding: 2em;
    background-color: rgba(60, 212, 60, 0.418);
    color: green;
    height: 7%;
    border-radius: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: appearDisappear 3s ease-in-out;
    visibility: hidden;
}

.error {
    background-color: rgba(212, 60, 60, 0.418);
    color: red;
}

@keyframes appearDisappear {
    0% {
        visibility: visible;
        top: -10%;
    }
    50%,
    70% {
        visibility: visible;
        top: 2%;
    }
    100% {
        top: -10%;
    }
}

.actions {
    width: 1.5em;
    height: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.actions img {
    filter: invert(1);
    width: 1.5em;
    border-radius: 0.3em;
    margin: 0;
}

.actions:hover {
    filter: brightness(0.8);
}

td,
tr input {
    border-radius: 0.5em;
    border: none;
}

/* Modo Oscuro */
.dark-mode {
    background: #121212;
    color: #f1f1f1;
}

.dark-mode section {
    border-radius: 1em;
    background-color: #2b2b2b;
    box-shadow: 0 0 0.3rem #ffffff52;
    width: auto min-content;
}

.dark-mode header {
    background: #1e1e1e;
}

.dark-mode #themeToggle {
    background: #333333;
}

#themeToggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    background: #1c56b4;
    transition: background 0.3s;
    margin-left: 1rem;
}

.dark-mode .addAttendance {
    max-width: 20em;
    width: 100%;
    background: #1e1e1e;
}

.dark-mode .innerContainer {
    display: flex;
    flex-direction: column;
    background-color: #1e1e1ea8;
    border-radius: 0.3rem;
    padding: 0.8em;
    box-shadow: 0 0 0.3rem #04091336;
}

.dark-mode input,
.dark-mode select {
    background-color: #333333;
    border: 0.1rem solid #555555;
    box-shadow: 0 0 0.1rem #00000080;
    color: #f1f1f1;
}

.searchComponent {
    margin: 1.5rem;
    max-width: 18.2rem;
    margin-bottom: 0;
    border: 0.1rem solid #2c74e742;
    transition: 0.1s ease-in-out;
    border-radius: 0.3rem;
    box-shadow: 0 0 0.1rem #09162c80;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 0;
}

.searchComponent img {
    width: 1rem;
}

.searchComponent input {
    width: 100%;
    border: none;
    background-color: transparent;
}

.teacherList {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.teacherList table {
    table-layout: fixed;
}

@media (min-width: 600px) {
    body{
        top: 10rem;
    }

    .signup{
        width: 70rem;
    }
}